<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/24
 * Time: 14:43
 */
namespace app\api\model;

class BannerItem extends BaseModel {
    protected $hidden = ['id', 'img_id', 'banner_id', 'delete_time', 'update_time'];

    /**
     * banner_item 关联 image表
     * @return \think\model\relation\HasMany
     */
    public function img(){
        return $this->hasOne('Image','id','img_id');
    }


}